<template>
    <div id="big">
        <div class="d1" v-for="(item, index) in selectData">
            <p>{{ item.name }}</p>
            <button class="d2" v-for="(item1, index1) in item.childrenList">{{ item1.name }}</button>
        </div>
        <div class="d11">
          <p>每日结算 <el-checkbox style="float: right; margin-right: 3%; margin-top: -7px;" v-model="checked1" size="large" /></p>
        </div>
        <div class="d11">
          <p>斗米自营 <el-checkbox style="float: right; margin-right: 3%; margin-top: -7px;" v-model="checked2" size="large" /></p>
        </div>
    </div>
  </template>
  
  <script lang='ts' setup>
  import { ref } from 'vue';
  
  //数据
  let selectData = [
    {
        "id": 1,
        "name": "身份要求",
        "childrenList": [
            {
                "id": 1001,
                "name": "全部"
            },
            {
                "id": 1002,
                "name": "学生可做"
            },
            {
                "id": 1003,
                "name": "非学生可做"
            },
        ]
    },
    {
        "id": 2,
        "name": "职位要求",
        "childrenList": [
            {
                "id": 2001,
                "name": "全部"
            },
            {
                "id": 2002,
                "name": "只看兼职"
            },
            {
                "id": 2003,
                "name": "只看全职"
            }
        ]
    },
  ]
  
  const checked1 = ref(false)
  const checked2 = ref(false)
  
  </script>
  
  <style lang='scss' scoped>
  #big {
    width: 100%;
    height: 75%;
    background-color: white;
  }
  
  .d1 {
    width: 100%;
    border-top: 1px solid #e9e8e8;
    padding-top: 10px;
  }
  
  .d1 p {
    color: gray;
    margin-left: 3%;
    margin-bottom: 10px;
  }
  
  .d2 {
    width: 22%;
    margin-left: 3%;
    background: white;
    line-height: 35px;
    text-align: center;
    border: 1px solid #e9e8e8;
    border-radius: 5px;
    margin-bottom: 15px;
  }
  
  .d11 {
    width: 100%;
    border-top: 1px solid #e9e8e8;
    padding-top: 10px;
  }
  .d11 p {
    margin-left: 3%;
    margin-bottom: 10px;
  }
  </style>
  